import request from '@/utils/request'

// 查询应收款明细账列表
export function listMerchantBalanceDetail(query) {
  return request({
    url: '/wms/merchantBalanceDetail/list',
    method: 'get',
    params: query
  })
}

// 查询应收款明细账详细
export function getMerchantBalanceDetail(createBy) {
  return request({
    url: '/wms/merchantBalanceDetail/' + createBy,
    method: 'get'
  })
}

// 新增应收款明细账
export function addMerchantBalanceDetail(data) {
  return request({
    url: '/wms/merchantBalanceDetail',
    method: 'post',
    data: data
  })
}

// 修改应收款明细账
export function updateMerchantBalanceDetail(data) {
  return request({
    url: '/wms/merchantBalanceDetail',
    method: 'put',
    data: data
  })
}

// 删除应收款明细账
export function delMerchantBalanceDetail(createBy) {
  return request({
    url: '/wms/merchantBalanceDetail/' + createBy,
    method: 'delete'
  })
}
